<template>
  <div class="box">
    <div class="box-header">
      <div class="title">{{ props.title }}</div>
    </div>
    <div class="body"><slot></slot></div>
  </div>
</template>
<script setup>
import { defineProps } from 'vue'
const props = defineProps({
  title: {
    type: String,
    default: '标题',
  },
})
</script>
<style lang="scss" scoped>
.box {
  width: 100%;
  height: 100%;
  .box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    padding-left: 40px;
    padding-right: 25px;
    background-image: url(@/assets/images/deliver/left-bottom-hbg.png);
    background-size: cover;
    .title {
      font-family:
        Source Han Sans CN,
        Source Han Sans CN;
      font-weight: bold;
      font-style: normal;
      font-size: 26px;
      color: #ffffff;
      line-height: 50px;
    }
  }
  .body {
    width: 100%;
    height: calc(100% - 50px);
    background: radial-gradient(0% 62% at 94% 46%, #232221 1%, rgba(54, 54, 54, 0.64) 100%);
  }
}
</style>
